package cn.actoncode.boot.framework.minimax.config;

import cn.actoncode.boot.framework.minimax.core.client.MiniMaxChatClient;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

@AutoConfiguration(after = MiniMaxProperties.class)
@EnableConfigurationProperties(MiniMaxProperties.class)
public class ActoncodeMiniMaxConfiguration {

    @Bean
    public MiniMaxChatClient miniMaxApiClient(MiniMaxProperties miniMaxProperties){
        return new MiniMaxChatClient(miniMaxProperties);
    }

}
